package ftn.gitis.lidar.filtering;

import java.io.File;
import java.util.Iterator;

import delaunay_triangulation.Delaunay_Triangulation;

public class LidarFilteringMain {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		/* Loading LiDAR points */
		LidarPoints lp = new LidarPoints();
		File inputFile = new File("blok2.xyz");
		lp.load(inputFile);
		
		long start = System.currentTimeMillis();
		ClassificationParameters params = new ClassificationParameters(40.0D, 1.5D, 6.0D * Math.PI / 180.0D);
		lp.classifyGroundPoints(params);
		long end = System.currentTimeMillis(); 
		System.out.println("Time: " + ((end-start)/1000) + "s");
		
		/* Writes result of classification*/
		File outputFile = new File("nasip_klase.xyz");
		lp.save(outputFile);
		
	}

}
